package base.thread;

import java.util.concurrent.locks.ReentrantLock;

public class LockDemo {



    public static void lockTest(){
        ReentrantLock reentrantLock=new ReentrantLock();
        for (int i=0;i<10;i++){
            reentrantLock.lock();
            System.out.println(" add lock  :  "+i);
        }


    }





}
